<template>
	<layout :loading="loading" curPage="paramConfig" title="系统参数配置">

		<block slot="title">
			<authNav href="/pages/paramConfig/paramConfigEdit" url="/admin/paramConfig/info" class="layui-btn layui-btn-sm">
				<i class="layui-icon layui-icon-add-1"></i>
				添加
			</authNav>
		</block>

		<div class="layui-form layui-border-box layui-table-view">

			<tableList :canSelect="false">

				<block slot="head">
					<th>ID</th>
					<th>参数名</th>
					<th class="autoWidth">参数值</th>
					<th class="autoWidth">备注</th>
					<th>更新时间</th>
					<th>操作</th>
				</block>

				<block slot="body">

					<tr v-for="( x , index) in list" :key="index">
						<td>
							{{x.id}}
						</td>
						<td>
							{{x.name}}
						</td>
						<td>
							<moreTip :tips="x.value" width="200px">{{x.value}}</moreTip>
						</td>
						<td>
							<moreTip :tips="x.remark" width="200px">{{x.remark}}</moreTip>
						</td>
						<td>
							{{x.updateTime}}
						</td>
						<td>
							<authNav :href="'/pages/paramConfig/paramConfigEdit?id=' + x.id" url="/admin/paramConfig/info" class="layui-btn layui-btn-xs">
								编辑
							</authNav>
							<authBtn :url="'/admin/paramConfig/delete?id='+x.id" confirm="delete" :callBack="true" @success="kit.getList(action)" class="layui-btn layui-btn-xs">
								删除
							</authBtn>
						</td>
					</tr>

				</block>

			</tableList>
			
			<emptyTips :loading="loading" :list="list"></emptyTips>
			
		</div>


	</layout>
</template>

<script>
	export default {
		data() {
			return {
				loading: true ,
				action: "/admin/paramConfig/list",
				list: []
			}
		},
		
		onLoad:function(res){
			
		},

		onShow() {
			this.kit.getList(this.action,function(res){
				
			});
		},

		methods: {
			
		}
	}
</script>